import httpRequest from '@/utils/httpRequest'
import constant from './constant'

export function pageList (data) {
  return httpRequest({
    url: constant.DR + '/rule/channel/page',
    method: 'post',
    data: data
  })
}
export function genKeyPair (data) {
  return httpRequest({
    url: constant.DR + '/rule/channel/genKeyPair',
    method: 'post',
    data: data
  })
}
export function getInfo (data) {
  return httpRequest({
    url: constant.DR + '/rule/channel/getInfo',
    method: 'post',
    data: data
  })
}
export function save (data) {
  return httpRequest({
    url: constant.DR + '/rule/channel/save',
    method: 'post',
    data: data
  })
}
export function del (data) {
  return httpRequest({
    url: constant.DR + '/rule/channel/del',
    method: 'post',
    data: data
  })
}
